I have been studying c ++ for a while. A friend asked me to help her develop a simulated ATM program two days ago. So I spent one night writing it. In fact, this program is also very simple, however, I think it is useful for people who have just learned c ++, because it can help you better understand the true meaning of object-oriented programming ------- program
analog Implementation of an ATM + shopping mall programJob Requirements:
Quota 15000 or Custom
Realize shopping mall, buy things to add shopping cart, call credit card interface Checkout
Can withdraw, handling fee 5%
22nd monthly Billing, 10th monthly repayment date, overdue, according to the total amount owed 5 daily interest
Multi-Account Login support
Support transfer between accounts
Record monthly daily consumptio
Import Java.util.Scanner;public class atm{static int allmoney=150000; ATM Existing balancesstatic int all=200000; The largest number of ATMsstatic int money = 10000; Initialize the user's balancepublic static void Main (string[] args) {System.out.print ("*********************************");System.out.println ();System.out.print ("********* Welcome to use chicken version
First, the demand1. Analog implementation of an ATM + shopping mall Program1). realization function1. Quota 15000 or Custom2. Implement the shopping mall, buy things into the shopping cart, call the credit card interface checkout3. Can withdraw cash, handling fee 5%4. Monthly billing 22nd, 10th monthly repayment day, overdue, according to the total amount owed 5 daily interest5. Support Multi-Account login6. Support transfer between accounts7. Record
Learning C language for one weeks, the teacher assigned to work, using C to write an ATM simulation program, customer interface has, withdrawals, 2 deposits, 3 transfers, 4 exit.And after the input error is required, there are three chances to re-lose, define the input password hellowold, with Switch branch.#include #includestring.h>#defineKey "Hellowold"//Define Password#defineZhanghu "123456789"#defineLin
It's nice to have money to copy the ATM below !!!
After you enter the correct password, you can: withdraw money, deposit, and exit.
[Cpp]# Include /*Imitate ATM withdrawal Program*/Int strCompare (char *, char *);Int accountVerify ();Void accountOperate ();Void simulateOfATM (){If (accountVerify ())AccountOperate ();Printf ("GOODBYE \ n ");}// If you do not use t
the Do{ theprintf"\ n Please select the service item you want: \ n"); theprintf"1. Check the balance \ n");98printf"2. Withdrawals \ n"); Aboutprintf"3. Change password \ n"); -printf"4. Pick up the card \ n");101printf"5. Deposit \ n");102scanf"%d",c);103 104 Switch(c) { the Case 1:106 Chaxun (A3);107 Break;108 Case 2:109A2=Qukuan (A3); the Break;111 Case 3: theA2=Gaimi (A2);113
When the password is entered, the password is limited. If the password is not entered correctly three times, the program will exit and the user is not allowed to continue the operation.
# Include
Here, the loop can use other functions. I use do {} while (), and The for loop can also be written here. You can try it. After all, the capabilities are limited. If there is something bad to write, you can point it out and learn together. Thank you.
.printstacktrace ()}}The problem is that here, to read the properties of the file first to load the file input IO stream, and then use the properties of the Get method, but if the middle of the process to insert a file output IO stream associated with the textYou will be aware of the contents of the file!For example, the following wording:File F = new file ("c://account/" + toaccno + ". txt");Properties P = new properties ();FileInputStream FIS = null;FileOutputStream fos = null;FIS = new FileIn
In the past decade, ATM has become an important technology for next-generation networks. It provides unprecedented scalability and cost-effectiveness, as well as support for real-time and multimedia services in the future. In the future information system, ATM will play an important role. However, the current information system, LAN and WAN, is built on network layer protocols such as IP, IPX, and AppleTalk
ATM is a transport mode in which information is organized into cells, which are asynchronous because the individual cells that contain information from a user do not need to appear periodically. ATM is a new network technology, which uses the asynchronous transmission mode based on cell and the virtual circuit structure, which solves the real-time and bandwidth problem of multimedia fundamentally. Achieve p
Java beginner course video practice-Beginner online, quiz game, ATM practice, welcome to watch, atm practice
Java introductory course video practice-elementary
The upload is complete. Welcome to the audience
Go directly:
Http://edu.csdn.net/course/detail/196
The course directory is as follows:
1 first knowledge of Java 19: 082 familiar with Eclipse development tools 12: 423 Java language basics 17
It is believed that many users are unfamiliar with Windows Embedded system, as a branch of Windows, Windows Embedded is an embedded operating platform for enterprise-level users. In layman's terms, our daily lives include ATM machines, self-service pay machines and even vending machines that are likely to be used in embedded operating systems like Windows Embedded.
After the Windows 8 system is about to receive a 8.1 upgrade, Microsoft confirmed at t
The computer communication network involves two fields of communication network computers. The communication network provides necessary means for data transmission and exchange between computers. Computer technology permeate the communication network and improves the performance of the latter. As a mature technology, IP plays a positive role in the rapid development of the Internet based on the features of network availability, best effort, and client-centric. As a modern communication technolog
1 IntroductionIn recent years, with the exponential growth of the Internet, it has put forward higher requirements for WAN bandwidth. Internet service providers (ISPs) are actively exploring various technologies to better connect to their backbone routers. The common approach is the adoption of asynchronous transfer mode ATM) technology, using 155 M (STM-1) up to 622 M (STM-4) of high-speed links. As a result, many IP over
adapted to AAL5, therefore, hardware is required to provide sufficient program storage space and data storage space, and the CPU processing capability is high enough. To this end, we chose the MPC860SAR chip produced by Motorola.The MPC860SAR chip is a powerful communication processing chip that can not only process Ethernet, HDLC, UART, and other protocols, but also implement SAR functions. The ATM cells
From the perspective of technological development, using ATM to build a broadband Internet backbone network usually goes through three major technical stages. This article analyzes the main technologies involved in these three phases and takes the next-generation Internet trial network VBNS in the United States as an example.1 IntroductionAs we all know, Internet has experienced explosive growth in the world in recent years. According to statistics, t
The ATM technology was proposed by ITU-T in late 1980s s to support broadband multimedia services for telecommunication networks. After nearly ten years of research, by the middle of 1990s, the ATM technology has been basically mature, and the relevant international standards developed by the ITU-T and ATM Forum are also basically complete, in addition, multiple
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.